import { DataProvider } from "../../../../../fl/data/DataProvider";
import { ObjCreate } from "../../common/ObjCreate";
import { TilePanel } from "../../equipment/TilePanel";
import { AchievementMajorCellRender } from "../item/AchievementMajorCellRender";
import { GlobalClass } from "../../../../../com/mui/core/GlobalClass";
import { ImagesConst } from "../../../resource/ImagesConst";
import { AchievementLatestCellRender } from "../item/AchievementLatestCellRender";
//class AchievementOverViewSubWin
    
    export  class AchievementOverViewSubWin /* flash.display.Sprite */
    {
        constructor()
        {
            
            this.initView();
            return;
        }

        public set dataProvider(arg1: DataProvider)
        {
            this._overViewList.dataProvider = arg1;
            this._overViewList.verticalScrollPosition = 0;
            this._overViewList.drawNow();
            return;
        }

        public updateLatest(arg1: DataProvider): void
        {
            this._latestList.dataProvider = arg1;
            this._latestList.drawNow();
            return;
        }

        /* internal  */initView(): void
        {
            var loc1=null;
            ObjCreate.createBg(0, 65, 533, 413, this);
            ObjCreate.createBg(535, 65, 187, 413, this);
            this._overViewList = new TilePanel();
            this._overViewList.x = 126;
            this._overViewList.y = 66;
            this._overViewList.setSize(408, 413);
            this._overViewList.rowHeight = 57;
            this._overViewList.columnWidth = 408;
            this._overViewList.setStyle("cellRenderer", AchievementMajorCellRender);
            this.addChild(this._overViewList);
            loc1 = GlobalClass.getBitmap(ImagesConst.AchievementZuijin);
            loc1.x = 532;
            loc1.y = 65;
            this.addChild(loc1);
            this._latestList = new TilePanel();
            this._latestList.x = 535;
            this._latestList.y = 100;
            this._latestList.setSize(185, 373);
            this._latestList.rowHeight = 40;
            this._latestList.columnWidth = 183;
            this._latestList.setStyle("cellRenderer", AchievementLatestCellRender);
            this.addChild(this._latestList);
            return;
        }

        /* internal */ /* var */_overViewList: TilePanel;

        /* internal */ /* var */_latestList: TilePanel;
    }
